// globale Variablen var old,skn; var agt=navigator.userAgent.toLowerCase(); var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1)); var mac = (agt.indexOf("mac")!=-1); var ns = (navigator.appName.indexOf("Netscape") != -1); var ns4 = document.layers; var ns6 = document.getElementById&&!document.all; var ie4 = document.all; var exclude=true; var ie=false; var ie4=false; var ie5=false; var op5=false; var konqi=false; if (document.all&&(agt.indexOf('msie')!=-1)) { ie=true; ie4=true; exclude=false; if (agt.indexOf('msie 4')==-1) { ie5=true; ie4=false; } if (agt.indexOf('opera')!=-1) { ie=false; ie4=false; ie5=false; op5=true; } } var ns6=false; var mz7=false; if (document.getElementById&&!ie) { ns6=true; exclude=false; if (agt.indexOf('netscape6')==-1) { ns6=false; mz7=true; } if (window.opera) { mz7=false; op5=true;} else if (agt.indexOf('gecko')==-1) { mz7=false; exclude=true; } } if (agt.indexOf('opera 4')!=-1) { op5=false; mz7=false; exclude=true; } var ns4=false; if ((agt.indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=4)&&!ie&&!op5&&!ns6&&!mz7) { ns4=true; exclude=false; } if (agt.indexOf('webtv')!=-1) { ie=false; ie4=false; exclude=true; } win=true; mac=false; if (agt.indexOf('mac')!=-1) { win=false; mac=true; } // code to find Konqueror if (navigator.vendor){ if (navigator.vendor =="KDE") { ie=false; ie4=false; ie5=false; konqi = true; ns6=true; ns4 = false; exclude = false; // exclude earlier than kde2.2 var thisKDE=agt; var splitKDE=thisKDE.split("konqueror/"); var aKDE=splitKDE[1].split("; "); var KDEn=parseFloat(aKDE[0]); var oldKde=false; if(KDEn<2.2){oldKde=true;exclude=true;ns6=false;konqi=false;} } } // differentiate between opera 5 and 6 var op6=false; if(op5){ if((agt.indexOf("opera 6")!=-1)||(agt.indexOf("opera/6")!=-1)){op6=true;op5=false;} } var iex = ie; // show logo, if there is no R&S frame function showLogo() { htmlcode="RS Logo



"; if (top.frames.length < 1) { document.write(htmlcode); } } // cell rollover functions function mover(cell, bgColor) { if (!cell.contains(event.fromElement)) { cell.style.cursor = 'hand'; if (bgColor == null) { cell.bgColor = 'CC9900'; } else { cell.bgColor = bgColor; } } } // cell rollover mouseout functions function mout(cell, bgColor) { if (!cell.contains(event.toElement)) { cell.style.cursor = 'default'; if (bgColor == null) { cell.bgColor = 'FCE698'; } else { cell.bgColor = bgColor; } } } // cell rollover onClick functions function mclick(cell) { if(event.srcElement.tagName=='TD') { cell.children.tags('A')[0].click(); } } // open a new window function openWindow(url, wname, attrib) { var f1 = null ; if (attrib==null) attrib="width=500,height=480,dependent=true,titlebar=no,menubar=no,locationbar=no,resizable=yes,status=no"; f1 = window.open(url, wname, attrib); } // open a new window with variable size function openSizedWindow(url, wname, width, height) { var f1 = null ; f1 = window.open(url, wname, "width=" + width + ",height=" + height + ",dependent=true,titlebar=no,menubar=no,locationbar=no,resizable=yes,status=no"); } function openExtraSizedWindow(u,t,w,h,x,y) { var f1 = null ; if (u != null) { if (t == null) t = document.title; if (w == null) w = 500; if (h == null) h = 515; if (x == null) x = ""; else x = ",left=" + x; if (y == null) y = ""; else y = ",top=" + y; f1 = window.open(u, t, 'width=' + w + ',height=' + h + x + y + ',dependent=true,titlebar=no,menubar=no,locationbar=no,resizable=yes,status=no'); } } // create readable URL function translate_url(string) { while (string.search("&") > 0) { string=string.replace("&","_AND_"); } while (string.search("=") > 0) { string=string.replace("=","_IS_"); } return string; } // load RS Frameset function loadRSFrameset(navig, content, website) { var loadIt = false; var newURL = '/www/dev_center.nsf/frameset?OpenAgent'; if (website) newURL = newURL + '&website=' + website; if (navig) newURL = newURL + '&navig=' + navig; if (content) newURL = newURL + '&content=' + translate_url(content); if (website == "jp") { if (top.frames.length < 1) { loadIt = true; } } else { if (top.frames.length < 2) { loadIt = true; } } if (content == "/www/dev_center.nsf/websearch?CreateDocument") loadIt = false; if (loadIt) top.location.replace(newURL); } function loadRSFrameset_stat(navig, content, website, path) { var loadIt = false; var newURL = '/www/dev_center.nsf/frameset?OpenAgent'; if (website) newURL = newURL + '&website=' + website; if (navig) newURL = newURL + '&navig=' + navig; if (content) newURL = newURL + '&content=' + translate_url(content); if (top.frames.length < 2) { loadIt = true; } if (loadIt) { top.location.replace(newURL); } } // load frameset function loadFrameset(navig, content) { // loadRSFrameset(navig, content, "com"); var loadIt = false; if (top.frames.length < 2) { loadIt = true; } if (loadIt) top.location.replace('/www/dev_center.nsf/dynframe?OpenAgent&navig=' + navig + '&content=' + translate_url(content)); } // load Product frameset function loadProductFrameset() { loadRSFrameset("/www/dev_center.nsf/html/nav,10,11", translate_url(document.URL),"com"); } // load News frameset function loadNewsFrameset() { loadRSFrameset("/www/dev_center.nsf/html/nav,10,17", translate_url(document.URL),"com"); } // load Download frameset function loadDownloadFrameset() { loadRSFrameset("/www/dev_center.nsf/html/nav,10,12", translate_url(document.URL),"com"); } // load Teisnach frameset function loadTeisnachFrameset() { loadRSFrameset("/www/dev_center.nsf/html/nav,10,18,140e", translate_url(document.URL),"com"); } // load Azubi frameset function loadAzubiFrameset() { loadRSFrameset("/www/dev_center.nsf/html/nav,10,14,142", translate_url(document.URL),"com"); } function MM_swapImgRestore() { var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))\n'); if (result) return name+','; else return ''; } function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; } if (ie && win) { pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player") + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); } if (ns || !win) { nse = ""; for (var i=0;i 0) pluginlist = pluginlist.substring(0,pluginlist.length-1); return (pluginlist.indexOf(theplugin)!=-1); } function loadpopupvars() { Xoffset=-60; // modify these values to ... Yoffset= 20; // change the popup position. yyy=-1000; if (ns4) { skn=document.dek; } else if (ns6) { skn=document.getElementById("dek").style; } else if (ie4) { skn=document.all.dek.style; } if(ns4) { document.captureEvents(Event.MOUSEMOVE); } else { skn.visibility="visible" skn.display="none" } document.onmousemove=get_mouse; } function popup(msg,bak,mywidth){ if (!mywidth) mywidth = 200; if (!skn) loadpopupvars(); if (ns4) { if (bak) { otherbg = " bgcolor=\"" + bak + "\""; } else { otherbg = ""; } var content=""+msg+"
"; } else { if (bak) { otherbg = " style=\"background: " + bak + ";\""; } else { otherbg = ""; } var content="
"+msg+"
"; } yyy=Yoffset; if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"} if(ns6){document.getElementById("dek").innerHTML=content;skn.display=''} if(ie4){document.all("dek").innerHTML=content;skn.display=''} } function get_mouse(e){ var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft; skn.left=x+Xoffset; var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop; skn.top=y+yyy; } function kill(){ yyy=-1000; if(ns4) { skn.visibility="hidden"; } else if (ns6||ie4) { skn.display="none"; } } function jump_product(product,section,value) { var valuelist = value.options[value.selectedIndex].value; var valueitem = valuelist.split("|"); if (value.selectedIndex > 0) { if (valueitem.length == 1) { if (parent.producthead.location.href != valueitem[0]) { parent.productcontent.location.href = valueitem[0]; } } else if (valueitem.length == 2) { newURL = "/www/dev_center.nsf/productframeset?Openagent&product=" + product + "&quickbar1=" + escape(valuelist) + "&quickbar1submit=GO"; parent.location.href = newURL; } else if (newtarget.length ==3) { parent.location.href = newtarget[0]; } } // value.selectedIndex=0; } function openFBForm(t,p) { var f1 = null ; if (t == null) t = document.title; if (p == null) p = ""; else p = "&product=" + p; f1 = window.open("/www/response.nsf/productcontactForm?OpenForm&title=" + t + p + "&url=" + location.href + "&target=window", "FormWindow", 'width=500,height=515,dependent=true,titlebar=no,menubar=no,locationbar=no,resizable=yes,status=no'); } function mark_all(string,query,starttag,endtag) { string_final = ""; string_work = string; var RegExpQuery = eval("/" + query + "/i"); while (string_work.search(RegExpQuery) > -1) { string_left = "<>" + string_final + string_work.substr(0,string_work.search(RegExpQuery)) if (string_left.lastIndexOf(">") > string_left.lastIndexOf("<")) { string_final = string_final + string_work.substr(0,string_work.search(RegExpQuery)) + starttag + string_work.substr(string_work.search(RegExpQuery),query.length) + endtag; string_work = string_work.substring(string_work.search(RegExpQuery) + query.length,string_work.length); } else { string_final = string_final + string_work.substr(0,string_work.search(RegExpQuery)) + string_work.substr(string_work.search(RegExpQuery),query.length); string_work = string_work.substring(string_work.search(RegExpQuery) + query.length,string_work.length); } } string_final = string_final + string_work; return string_final; } function markquery(queryvalue) { new_content = original_content; new_content = mark_all(new_content,queryvalue,"",""); document.all.pagecontent.innerHTML = new_content; } function highlight_query(query_string) { query=unescape(query_string); query=query.substr(1, query.length-1) paare=query.split("&") sitesearch = ""; for (i = 0; i < paare.length; i++) { paar=paare[i].split("="); if (paar[0] == "Highlight") { highlight=paar[1].split(","); sitesearch = highlight[1]; } } if (document.all && (sitesearch != "")) { original_content = document.all.pagecontent.innerHTML; markquery(sitesearch); } if ((docNavig != "") && (sitesearch != "")) { parent.frames["navig"].location.href = docNavig + "?OpenDocument&noredirect=no"; } } // variable with cookie name for shop var shopcn = "RSShop"; var shopvisible = true; var configuratorcn = "RSConfigurator"; var configuratorvisible = true; // get cookie value function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } // set a cookie function SetCookie(name,value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } // get cookie function GetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { return getCookieVal (j); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function DeleteCookie(name) { var expdate = new Date(); expdate.setTime(expdate.getTime() - 1); var cookieval = GetCookie(name); if (cookieval != null) { SetCookie(name,"1",expdate); } } // open the shop window function openShopWindow(item) { var wn = "RSShop"; var loadApplet = false; var cw = GetCookie(shopcn); if (cw == null) { loadApplet = true; } else { var w = window.open("",wn); if ((w.document.title == "Rohde & Schwarz Shop") && (w.document.RSShopApplet)) { w.document.RSShopApplet.onHTMLEvent("/Sachnummern = " + item); } else { w.close(); loadApplet = true; } } if (loadApplet) { var expDays = 1; var expdate = new Date(); expdate.setTime(expdate.getTime() + (expDays*24*60*60*1000)); SetCookie(shopcn,"1",expdate,"/"); var w = openExtraSizedWindow("http://www.cms.rohde-schwarz.com/live/rs/product/product_list/shop/wb.php?prodid=" + item,wn,620,200,Math.floor((screen.width-600)/2),Math.floor((screen.height-200)/2)); } } function load_product(product) { location.href = "/product/" + product; } function openConfiguratorWindow(item) { var wn = "RSConfigurator"; var loadApplet = false; var cw = GetCookie(configuratorcn); if (cw == null) { loadApplet = true; } else { var w = window.open("",wn); if ((w.document.title == "Rohde & Schwarz Configurator") && (w.document.RSConfiguratorApplet)) { // w.document.RSConfiguratorApplet.onHTMLEvent("/Sachnummern = " + item); } else { w.close(); loadApplet = true; } } if (loadApplet) { var expDays = 1; var expdate = new Date(); expdate.setTime(expdate.getTime() + (expDays*24*60*60*1000)); SetCookie(configuratorcn,"1",expdate,"/"); var w = openExtraSizedWindow("/www/dev_center.nsf/configurator_" + item + ".html",wn,620,250,Math.floor((screen.width-600)/2),Math.floor((screen.height-200)/2)); } } function openSolutionFinderWindow(params) { //var queryString = "?OpenForm"; var queryString = "?"; //var urlBase = "/www/dev_center.nsf/product-configuration.html"; var urlBase = "http://www.cms.rohde-schwarz.com/live/rs/product/product-configurator.php"; var j=0; for ( var i=0; i < openSolutionFinderWindow.arguments.length; i++ ) { j = i+1; queryString = queryString + "&p" + j + "=" + openSolutionFinderWindow.arguments[i]; } var wn = "RSConfigurator"; var loadApplet = false; var cw = GetCookie(configuratorcn); if (cw == null) { loadApplet = true; } else { var w = window.open("",wn); //if ((w.document.title == "Rohde & Schwarz Solution Finder") && (w.document.RSConfiguratorApplet)) { //alert(typeof w); if ( w != null ) { if (w.document.RSConfiguratorApplet) { // w.document.RSConfiguratorApplet.onHTMLEvent("/Sachnummern = " + item); } else { w.close(); loadApplet = true; } } } if (loadApplet) { var expDays = 1; var expdate = new Date(); expdate.setTime(expdate.getTime() + (expDays*24*60*60*1000)); SetCookie(configuratorcn,"1",expdate,"/"); var w = openExtraSizedWindow(urlBase + queryString ,wn,620,270,Math.floor((screen.width-600)/2),Math.floor((screen.height-200)/2)); } else { //; } } function showhide_div(divid) { o_div = document.getElementById(divid); i_div = document.getElementById("img_" + divid); if (o_div.style.display == "") { o_div.style.display = "none"; if (i_div) i_div.src = "/images/expand.gif"; } else { o_div.style.display = ""; if (i_div) i_div.src = "/images/collapse.gif"; } }